package io.github.openUtil.autoConfig;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author openUtil
 */
@ConfigurationProperties( prefix = "minio")
public class MinioProperties {

    /**
     * minio地址
     */
    private String endpoint = "http://localhost:9002";
    /**
     * minio用户名
     */
    private String accessKey = "root";
    /**
     * minio 密钥
     */
    private String secretKey = "12345678";
    /**
     * minio  默认使用的bucket 供save api使用
     */
    private String defaultBucketName = "img";


    public MinioProperties() {
    }

    public String getEndpoint() {
        return this.endpoint;
    }

    public String getAccessKey() {
        return this.accessKey;
    }

    public String getSecretKey() {
        return this.secretKey;
    }


    public void setEndpoint(String endpoint) {
        this.endpoint = endpoint;
    }

    public void setAccessKey(String accessKey) {
        this.accessKey = accessKey;
    }

    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }

    public String getDefaultBucketName() {
        return defaultBucketName;
    }

    public void setDefaultBucketName(String defaultBucketName) {
        this.defaultBucketName = defaultBucketName;
    }

}
